#!/usr/bin/env node

require('@swc-node/register')

const { generatorHandler } = require('../generatorHandler.ts')

generatorHandler({
  async onGenerate() {
    await new Promise((r) => {
      setTimeout(r, 100)
    })
    throw new Error('Oh no')
  },
  onManifest() {
    throw new Error('Nein')
  },
})
